Skip to content

MCP#5899

Merged
adalisk-emikhaylov merged 52 commits intomasterfrom
mcp
Apr 17, 2026
Merged

MCP#5899
adalisk-emikhaylov merged 52 commits intomasterfrom
mcp

Conversation

@adalisk-emikhaylov
Copy link
Copy Markdown
Contributor

No description provided.

@adalisk-emikhaylov adalisk-emikhaylov changed the title MCP preparations MCP Apr 13, 2026
@adalisk-emikhaylov adalisk-emikhaylov added the skip-image-rebuild force to skip docker image rebuild label Apr 14, 2026
Comment thread scripts/thirdparty/nlohmann-json.sh
Comment thread source/MRMcp/MRMcp.h
Comment thread source/MRMcp/MRMcp.h
Comment thread source/MRMcp/MRMcp.h
Comment thread source/MRMcp/MRMcp.h Outdated
Comment thread source/MRMcp/MRMcp.h Outdated
Comment thread source/MRMcp/MRMcp.h Outdated
Comment thread source/MRViewer/MRSetupMcp.cpp Outdated
Comment thread source/MRViewer/MRUITestEngineControl.h Outdated
Comment thread source/MRViewer/MRViewerMcp.cpp
@adalisk-emikhaylov adalisk-emikhaylov added the skip-image-rebuild force to skip docker image rebuild label Apr 17, 2026
Comment thread source/MRMcp/MRMcp.h

#include "exports.h"

#include <nlohmann/json.hpp>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be hidden in cpp?

Comment on lines +46 to +48
/// Launch the MCP server. Append this to the `CommandLoop` instead of calling immediately.
/// Returns false if the MCP support is not compiled in.
MRVIEWER_API virtual bool setupMcp() const;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use command loop inside?
Why add new function and not using one of existing?

Comment thread source/MRMcp/MRMcp.h
{

/// This is used to build json schemas.
namespace Schema
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to move it to a separate header MRMcpSchema.h?

CommandLoop::appendCommand( [&] ()
{
setup.setupExtendedLibraries();
setup.setupMcp();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it conditional: add an option to LaunchParams and set it disabled by default.

@adalisk-emikhaylov adalisk-emikhaylov merged commit a81630f into master Apr 17, 2026
34 checks passed
@adalisk-emikhaylov adalisk-emikhaylov deleted the mcp branch April 17, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-image-rebuild force to skip docker image rebuild

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants